package com.zatech.cgnci.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 免赔信息表
 * </p>
 *
 * @author Generator
 * @since 2024-12-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("cgnci_deductible_info")
@ApiModel(value = "CgnciDeductibleInfoDO对象", description = "免赔信息表")
public class CgnciDeductibleInfoDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("免赔ID")
    @TableId(value = "deductible_id", type = IdType.ASSIGN_ID)
    private Long deductibleId;

    @ApiModelProperty("层ID")
    private String layerId;

    @ApiModelProperty("免赔类型")
    private String deductibleType;

    @ApiModelProperty("免赔描述")
    private String deductibleDescription;

    @ApiModelProperty("免赔金额")
    private BigDecimal deductibleAmount;

    @ApiModelProperty("免赔比例")
    private BigDecimal deductibleRate;

    @ApiModelProperty("计算基础")
    private String calculationBasis;

    @ApiModelProperty("最低免赔额")
    private BigDecimal minimumAmount;

    @ApiModelProperty("最高免赔额")
    private BigDecimal maximumAmount;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人")
    private String createUser;

    @ApiModelProperty("更新时间")
    @TableField(update = "now()")
    private Date updateTime;

    @ApiModelProperty("更新人")
    private String updateUser;


}
